from PyQt5.QtWidgets import QLineEdit
from PyQt5.QtCore import pyqtSignal

class MyLineEdit(QLineEdit):
    focus_out = pyqtSignal(str)
    
    def focusOutEvent(self, QFocusEvent):
        super(MyLineEdit, self).focusOutEvent(QFocusEvent)
        self.focus_out.emit(self.text())